package com.vtquang.mymaps;

import android.os.Parcel;
import android.os.Parcelable;

public class SearchLocation implements Parcelable {
	private double _lat;
	private double _lng;

	public SearchLocation(){
		
	}
	
	public double get_lat() {
		return _lat;
	}

	public void set_lat(double _lat) {
		this._lat = _lat;
	}

	public double get_lng() {
		return _lng;
	}

	public void set_lng(double _lng) {
		this._lng = _lng;
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeDouble(this._lat);
		dest.writeDouble(this._lng);
	}

	public SearchLocation(Parcel in) {
		this.set_lat(in.readDouble());
		this.set_lng(in.readDouble());
	}

	public static final Parcelable.Creator<SearchLocation> CREATOR = new Parcelable.Creator<SearchLocation>() {
		public SearchLocation createFromParcel(Parcel in) {
			return new SearchLocation(in);
		}

		public SearchLocation[] newArray(int size) {
			return new SearchLocation[size];
		}
	};
}
